package com.jiushi.redis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiushi.redis.entity.User;
import com.jiushi.redis.utils.Result;

public interface UserService extends IService<User> {

    /**
     * 用户登录
     * @param user
     * @return
     */
    Result login(User user);

    /**
     * 用户注册
     * @param user
     * @return
     */
    Result register(User user);

    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    User testAdd(Long id);

    /**
     * 根据id删除用户
     * @param id
     * @return
     */
    User testDelete(Long id);
}
